import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/style.scss';

import Vue from 'vue';
import App from './App.vue';
import ElementUI from 'element-ui';
import VueLazyload from 'vue-lazyload';

import store from '@/store';
import router from '@/router';
import Http from '@/plugins/http';
import Loading from '@/plugins/loading';
import UserInfo from '@/plugins/user';

// import 'babel-polyfill';

Vue.use(UserInfo);
Vue.use(ElementUI);
Vue.use(Loading, { lock: true });
Vue.use(Http, 'http://192.168.0.10:8084', true);
Vue.use(VueLazyload, {
  error: '/assets/img/error.png',
  loading: '/assets/img/loading.gif',
});

Vue.config.productionTip = false;

new Vue({
  store: store,
  router: router,
  render: (h) => h(App),
}).$mount('#app');
